#include<iostream>
using namespace std;
int main() {
	int i = 1, num = 1, n;
	cin >> n;
	while (i <= n) {

		num = 2 * num;
		i++;

	}
	cout << "2^" << n << " = " << num;


}